package com.fzy.designmodel.single;


/**
 * 双重校验锁
 */
public class Test05 {

    private volatile static Test05 test05;

    public static Test05 getTest05(){
        if(test05 == null){
            synchronized (Test05.class){
                if(test05 == null){
                    test05 = new Test05();
                }
            }
        }
        return test05;
    }
}
